package com.hooper.constant;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2023/04/02/11:42
 */
public class UserConstant {
    /**
     * 用户状态 0：禁用 1：正常
     */
    public static final int USER_STATUS_NORMAL = 1;
    public static final int USER_STATUS_BANNED = 0;

    public static final Long ADMIN_ID = 1L;
    /**
     * 密码SALT
     */
    public static final String EXTRA_SALT = "tim hooper";

    /**
     * 用户权限缓存key
     */
    public static final String USER_PERMISSIONS = "user:permissions:";

    /**
     * 缓存TTL 单位：分
     */
    public static final long CACHE_TTL = 60L;
}
